package com.hspedu.collection_;

/**
 * @author 谷其昊
 * @version 1.0
 * @date 2022/2/6
 * @time 16:07
 */
public class Test {
    public static void main(String[] args) {
        new C().cry();
        new D().cry();
        new D().run();

    }
}

interface A{
    void cry();
}

interface B extends A{
    void run();

    @Override
    void cry();
}

class C implements A{
    @Override
    public void cry() {
        System.out.println("a.cry");
    }
}

class D implements B{
    @Override
    public void run() {
        System.out.println("b.run");
    }

    @Override
    public void cry() {
        System.out.println("b.cry");
    }
}
